<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        class Person{
            sex='nan';
            age=18;



            constructor(name, age) {
                 this.name=name;
                 this.age=age;
                 this.hobby='wan';
                 this.jummp=function(){
                     console.log('jump');
                 }
                }


                static all() {
                console.log('111');
               
                    };


                    static Height = '185cm';


                    run() {
                            console.log('222');
                         };

        };







        class Person3{
            constructor(name, age) {
                this.name = name;
                this.age = age;
            }
        }



        const target = {
            name: '111',
            age: 18
        }
        const target1 = {
            height: '185cm',
        }



        let test_assign = Object.assign(target, target1);
        console.log(test_assign);
        console.log(target);
        
        let tom = new Person('tom', 10,);
        console.log(tom);
        console.dir(Person);
        console.log(Person);
        Person.all();
        console.log(Person.Height);
        tom.run();
    </script>
</body>
</html>